package model

type Credential struct {
	Id         int64  `json:"id,string" gorm:"primaryKey;comment:'凭证id'"`
	Name       string `json:"name" gorm:"comment:'名称'"`
	Type       string `json:"type" gorm:"comment:'凭证类型，pwd-账号密码模式'"`
	Details    string `json:"details" gorm:"comment:'凭证内容，以json格式保存'"`
	Creator    string `json:"creator" gorm:"comment:'创建人'"`
	CreatorId  int64  `json:"creatorId" gorm:"comment:'创建人id'"`
	CreateTime int64  `json:"createTime" gorm:"comment:'创建时间'"`
	IsOpen     int    `json:"isOpen" gorm:"comment:'是否公开'"`
}

func (r *Credential) TableName() string {
	return "sys_credential"
}
